/*
 * IntNode.cpp
 *
 *  Created on: 20/04/2009
 *      Author: santiago
 */

#include "IntNode.h"


int IntNode::getNodeValue() const {
	return this->data;
}

void IntNode::setNodeValue(int value) {
	this->data = value;
}

IntNode::IntNode() : Node() {
	this->data = 0;
}

IntNode::~IntNode() {}

IntNode* IntNode::clone() const {
	return new IntNode(*this);
}

bool IntNode::equals(const Node& node) const {
	IntNode& intNode = (IntNode&)node;
	if (this->getNodeValue() == intNode.getNodeValue()) {
		return true;
	}
	return false;
}
